package com.ruoyi.system.api.domain.finance;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.ruoyi.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 财务收款单明细对象 finer_recive_order_detail
 *
 * @author ruoyi
 * @date 2024-11-02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReciveOrderDetail implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Integer id;

    /**
     * 财务收款单id
     */
    @Excel(name = "财务收款单id")
    private Integer reciveOrderId;

    /**
     * 源单号
     */
    @Excel(name = "源单号")
    private String srcOrderCode;

    /**
     * 结算方式
     */
    private Integer payTypeId;

    @Excel(name = "结算方式")
    private String payTypeName;

    /**
     * 资金账户
     */
    private Integer accountId;

    @Excel(name = "资金账户")
    private String accountName;

    /**
     * 金额
     */
    @Excel(name = "金额")
    private BigDecimal money;

    //创建人
    @Excel(name = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /**
     * 修改人
     */
    @Excel(name = "修改人")
    private String modifyBy;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyDate;

    /**
     * 是否删除(0:未删除   1:删除)
     */
    @Excel(name = "是否删除(0:未删除   1:删除)")
    private Integer isDel;

    //备注
    @Excel(name = "备注")
    private String remark;

    /**
     * 搜索值
     */
    @JsonIgnore
    private String searchValue;

    /**
     * 请求参数
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }
}
